//
//  tilteButton.swift
//  Sina
//
//  Created by duhui on 15/9/28.
//  Copyright © 2015年 沈方武. All rights reserved.
//

import  UIKit

class TilteButton: UIButton {
    
    override init(frame: CGRect) {
        super.init(frame:frame)
        
      setTitleColor(UIColor.blackColor(), forState: UIControlState.Normal)
        
        sizeToFit()
        
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    override func layoutSubviews() {
        
        super.layoutSubviews()
        titleLabel?.frame.origin.x = 0
        imageView?.frame.origin.x = (titleLabel?.frame.size.width)!
        
    }
    
    

}
